Skip to content

Conversation

epage
Copy link
Collaborator

@epage epage commented Mar 23, 2022

In #216, a user is backporting changes on Linux and hadn't marked
protected branches which would serve as bases, causing git-stack to
topologically sort commits that are very distant from each other,
causing a simple showing of the commit graph to take 20-30s.

This change infers that these branches are do not belong to their base
and split them off. Now showing the commit graph takes about 6s as it
tries each base.

epage added 5 commits March 22, 2022 09:10
Originally, we would bail out if there is no base.  We might split
off branches that are very-divergent branches from their base, so we
need to make this better.  The first step was allowing it.  This is the
next where we infer a "good enough" base to probide context for the
user.
In gitext-rs#216, a user is backporting changes on Linux and hadn't marked
protected branches which would serve as bases, causing git-stack to
topologically sort commits that are very distant from each other,
causing a simple showing of the commit graph to take 20-30s.

This change infers that these branches are do not belong to their base
and split them off.  Now showing the commit graph takes about 6s as it
tries each base.
@epage epage merged commit a2ca9d1 into gitext-rs:main Mar 23, 2022
@epage epage deleted the base branch March 23, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant